/*package servlet;

import hibernate.AssetInfo;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import DAO.ZCBS;

*//**
 * Servlet implementation class getAssetServlet
 *//*
public class getAssetServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    *//**
     * @see HttpServlet#HttpServlet()
     *//*
    public getAssetServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	*//**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 *//*
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		
		response.setCharacterEncoding("utf-8");
		response.setContentType("text/plain");
		PrintWriter out = response.getWriter(); 
		
		String assetNo = request.getParameter("assetNo");
		
		ZCBS zcbs = new ZCBS();
		AssetInfo assetInfo = zcbs.getAsset(assetNo);

        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
//        String currentlyTime  = dateFormat.format(assetInfo.getStartUseTime());		//数据库日期格式转换
		
		String result = "{model:'" + assetInfo.getModel() + "', name:'" + assetInfo.getName() + "', department:'" + assetInfo.getDepartment()
		                 + "', principal:'" + assetInfo.getPrincipal() + "', lifeYears:'" + assetInfo.getLifeYears() + "', money:'" + assetInfo.getMoney()
		                 + "', startUseTime:'" + currentlyTime + "'}";		
		//out.print("{success:true,msg:'ddd',mt:'dds'}");
		out.print(result);
	}

	*//**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 *//*
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doGet(request,response);
	}

}
*/